import Vue from 'vue'
import ElementUI from 'element-ui';
import App from './App.vue'
import VueRouter from 'vue-router'
import './utils/flexible'
import routes from './router'
import store from './store'
Vue.use(VueRouter);
Vue.config.productionTip = false
Vue.use(ElementUI);
import 'element-ui/lib/theme-chalk/index.css';
// 配置路由规则
const router = new VueRouter({
  mode: 'history',//history  hash
  base: __dirname,
  routes: routes.routerList
})
//创建vue实例
const vue = new Vue({
  // el:'#app',
  render: h => {
    return h(App)
  },
  data:{
     nativeCode:{
        text:"测试vue源码"
     }
  },
  router: router,
  store: store,
  // template: '<App/>',
  component: App,
  created: function () {
  }
}).$mount('#app')
